<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %>
<%@ page import="org.apache.commons.dbutils.QueryRunner" %>
<%@ page import="org.apache.commons.dbutils.handlers.BeanListHandler" %>
<%@ page import="com.util.JdbcUtil" %>
<!DOCTYPE html>
<html>
<head>
    <title>酒店管理系统</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="${pageContext.request.contextPath}/js/5.1.1/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<jsp:include page="/menu/manmenu2.jsp" flush="true">
    <jsp:param name="A" value="style="/>
    <jsp:param name="B" value="color:rgba(255,255,255,0.75)"/>
</jsp:include>
<!-- _____________________________________________________________________________以上导航条 -->
<div class="container-fluid" style="margin-top:100px">

    <div class="container">

        <div class="row clearfix">

            <div class="col-md-12 column">

                <a href="addpeo.jsp">
                    <button type="submit" class="btn btn-outline-primary">添加个人信息</button>
                </a>
            </div>

        </div>
        <div class="row clearfix">
            <div class="col-md-12 column">
                <form role="form" action="${pageContext.request.contextPath}/showhotelA" method="post"
                      style="margin-top:15px;">
                    <lable><FONT style="FONT-SIZE: 25px; COLOR:black;FONT-FAMILY: 楷体; margin-top:10px;"></FONT></lable>

                    <button type="submit" class="btn btn-outline-primary">查询个人信息</button>
                    ${st}
                    <%request.getSession().removeAttribute("st"); %>

                </form>
                <table class="table" style="FONT-SIZE: 25px; COLOR:black;FONT-FAMILY: 楷体; margin-top:10px;">
                    <thead>
                    <tr>
                        <th>
                            员工号
                        </th>
                        <th>
                            姓名
                        </th>
                        <th>
                            性别
                        </th>
                        <th>
                            职位
                        </th>
                        <th>
                            联系方式
                        </th>
                        <th>
                            操作
                        </th>

                    </tr>
                    </thead>
                    <tbody>
                    <c:forEach items="${people}" var="obj">
                        <tr>
                            <td>
                                    ${obj.account}
                            </td>
                            <td>
                                    ${obj.name}
                            </td>
                            <td>
                                    ${obj.sex}
                            </td>
                            <td>
                                    ${obj.pro}
                            </td>
                            <td>
                                    ${obj.cls}
                            </td>

                            <td>
                                <a href="${pageContext.request.contextPath}/pen/editPeo.jsp?account=${obj.account}&name=${obj.name}&sex=${obj.sex}&pro=${obj.pro}&cls=${obj.cls}">更改</a>
                            </td>
                        </tr>
                    </c:forEach>
                    <%request.getSession().removeAttribute("student"); %>

                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>


</body>
</html>